﻿// CDialogLineWidth.cpp: 实现文件

#include "stdafx.h"
#include "draw.h"
#include "afxdialogex.h"
#include "CDialogLineWidth.h"

// CDialogLineWidth 对话框

IMPLEMENT_DYNAMIC(CDialogLineWidth, CDialogEx)

CDialogLineWidth::CDialogLineWidth(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_LINE_WIDTH_DIALOG, pParent)
	, width(0) // 初始化线宽为0
{
}

CDialogLineWidth::~CDialogLineWidth()
{
}

void CDialogLineWidth::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_LINE_WIDTH, width); // 使用DDX_Text函数将IDC_EDIT_LINE_WIDTH的值与成员变量width关联
}

BEGIN_MESSAGE_MAP(CDialogLineWidth, CDialogEx)
END_MESSAGE_MAP()

// CDialogLineWidth 消息处理程序